package edu.utn.tacs.grupouno.ui.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Application implements EntryPoint {

	private static Panel contentPanel;
	
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		final Panel mainPanel = new VerticalPanel();
		contentPanel = new HorizontalPanel();
		mainPanel.add(new NavigationBar(contentPanel));
		mainPanel.add(contentPanel);
		RootPanel.get().add(mainPanel);
	}

	public static Panel getContentPanel() {
		return contentPanel;
	}
}